package cn.iocoder.yudao.module.system.controller.admin.data.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 存储用户健康相关数据，包括体检记录、症状报告、医疗历史等，用于健康分析和医疗服务分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DataPageReqVO extends PageParam {

    @Schema(description = "记录时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] recordTime;

    @Schema(description = "用户id", example = "28256")
    private String userId;

    @Schema(description = "心率")
    private Integer heartRate;

    @Schema(description = "血氧")
    private Integer oxygenSaturation;

    @Schema(description = "收缩压")
    private Integer systolicPressure;

    @Schema(description = "舒张压")
    private Integer diastolicPressure;

    @Schema(description = "肺活量")
    private Integer vitalCapacity;

    @Schema(description = "握力")
    private BigDecimal gripStrength;

    @Schema(description = "呼气酒精")
    private BigDecimal breathAlcohol;

    @Schema(description = "心梗指数")
    private BigDecimal heartAttackIndex;

    @Schema(description = "压力指数")
    private BigDecimal stressIndex;

    @Schema(description = "反应时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private BigDecimal[] reactionTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "健康指数")
    private Integer health;

    @Schema(description = "情绪指数")
    private Integer mood;

    @Schema(description = "疲劳指数")
    private Integer fatigue;

    @Schema(description = "综合指数")
    private Integer comprehensive;

    @Schema(description = "优：X≥85；良：68≤X＜85；差：X＜68，1,2,3")
    private Integer level;

}